#import "DatePickerController.h"

@implementation DatePickerController
- (IBAction)changedDate {
	
	exp.date = picker.date;
}


-(void) setDate:(Expense*) expense
{
	exp = expense;
}

-(void) viewDidLoad
{

}

- (void)viewWillAppear:(BOOL)animated {

	[picker setDate:[exp date]];
	//[super viewWillAppear:animated];
}

-(void) dealloc
{
	[picker release];
	[super dealloc];
}

@end
